# $Revision: 41 $, $Date: 2010-11-17 18:41:50 +0000 (Wed, 17 Nov 2010) $
# $URL: http://i3rc-monte-carlo-model.googlecode.com/svn/branches/backwards-mc/Example-Drivers/Makefile $
include ../Makefile
Modules += $(ModuleFlag)$(NetcdfHome)/include $(ModuleFlag)$(CodeDir) $(ModuleFlag)$(IntegDir)

rtObjs =  $(CodeDir)/characterUtils.o $(CodeDir)/numericUtilities.o \
          $(CodeDir)/ErrorMessages.o $(CodeDir)/userInterface_Unix.o \
          $(CodeDir)/$(multipleProcCode) $(CodeDir)/scatteringPhaseFunctions.o \
          $(CodeDir)/inversePhaseFunctions.o $(CodeDir)/opticalProperties.o \
          $(CodeDir)/RandomNumbersForMC.o $(CodeDir)/monteCarloIllumination.o \
          $(CodeDir)/surfaceProperties.o $(IntegDir)/monteCarloRadiativeTransfer.o

Targets = planeParallel monteCarloDriver backwardsMonteCarloDriver

all: monteCarloDriver backwardsMonteCarloDriver planeParallel

monteCarloDriver: monteCarloDriver.o $(rtObjs)
monteCarloDriver.o: monteCarloDriver.f95 $(rtObjs)

backwardsMonteCarloDriver: backwardsMonteCarloDriver.o $(rtObjs)
backwardsMonteCarloDriver.o: backwardsMonteCarloDriver.f95 $(rtObjs)

planeParallel: planeParallel.o $(rtObjs)
planeParallel.o: planeParallel.f95 $(rtObjs)

clean::
	-/bin/rm *.mod *.o $(Targets)
